package com.example.zingalbumdownloader;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;

@SuppressWarnings("deprecation")
public class MainActivity extends TabActivity {
	private static MainActivity theInstance;
	private TabHost mtabHost;

	public static String playingAlbum = "";

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		mtabHost = getTabHost();

		TabSpec spec1 = mtabHost.newTabSpec("Album");
		spec1.setIndicator("ALBUM");
		Intent intent1 = new Intent(MainActivity.this, Album_Activity.class);
		spec1.setContent(intent1);

		// TabSpec spec2 = mtabHost.newTabSpec("Play");
		// spec2.setIndicator("PLAY");
		// Intent intent2 = new Intent(MainActivity.this,
		// AlbumDetail_Activity.class);
		// spec2.setContent(intent2);

		mtabHost.addTab(spec1);
//		mtabHost.addTab(spec2);
	}

	public static MainActivity getInstance() {
		return MainActivity.theInstance;
	}

	public MainActivity() {
		MainActivity.theInstance = this;
	}

}
